package com.justech.eat.global.model;

/**
 * @program: eat-service
 * @description: 属性错误信息
 * @author: feifei.li
 * @create: 2020-05-29 15:20
 **/
public class ValidationError {

    /** 字段：或者是属性 */
    private String field;

    /** 错误信息，一般是提示文案。不建议在该字段中设置业务信息 */
    private String message;

    public ValidationError(String field, String message) {
        this.field = field;
        this.message = message;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
